<!--#include file="../main/top.asp" -->
<%levelArray = userLevel()%>
<%
	id=request.Form("id")
    '操作jxj_users表
	sql="select * from cw_users where userId="&id
    set rs = ado_iquery(sql,conn,3,3)
	password = request.Form("password")
	if password <> "" then
		rs("password")= sha1(password)
	end if
	rs("realName")=request.Form("realName")
	rs("telNum")=request.Form("telNum")
	rs("userLevel")=request.Form("userLevel")
	level=request.Form("userLevel")
	rs("roleCollection") = trim(request.Form("selectRole"))
	
	if level = 1 then
		rs("collegeid")=-1
		rs("classCollection")=""
	elseif level=2 then
		rs("collegeid")=request.Form("collegeid")
		rs("classCollection")=""
	elseif level=3 then
		rs("collegeid")=request.Form("collegeid")
		rs("classCollection")=request.Form("classCollection")
	end if
	rs("edittime")=now()
	rs.update
    rs.close : set rs=nothing
	

	conn.close : set conn=nothing
%>
<div class="function_title"><span class="t2"><img src="../images/dqwz.gif">当前位置：操作提示</span></div>
<div class="function_content">
<div class="return_info">信息编辑成功！ <a href="adminUsersList.asp">返回列表</a></div>
</div>
<!--#include file="../main/bottom.asp" -->